package com.scs.application.modules.msg.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.core.service.IBaseService;
import com.scs.application.modules.msg.entity.InnerInbox;
import com.scs.application.modules.msg.vo.InnerInboxVO;


public interface InnerInboxService extends IBaseService<InnerInbox> {

    IPage<InnerInboxVO> pageByUser(IPage page, QueryWrapper queryWrapper);

    InnerInboxVO findInnerInboxById(String id);

    int countNews();

    InnerInboxVO msgUserTop1();

    /**
     * 根据noticeId获取消息
     * @param noticeId
     * @return
     */
    InnerInboxVO getMsgByNoticeId(String noticeId);

    //超过时间自动读取
    void autoRead();
}
